package framework.oracle.sun.java.io;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
public class TestFile {
	public static void main(String[] args) throws Exception {
		File file1 = new File("scoreRule1.txt");
		File file2 = new File("scoreRule2.txt");
		FileInputStream is = new FileInputStream(file1);
		FileOutputStream os = new FileOutputStream(file2);
		int count, n = 512;
		byte[] buffer = new byte[n];
		count = is.read(buffer, 0, n);
		while (count != -1) {
			os.write(buffer, 0, count);
			count = is.read(buffer, 0, n);
		}
		is.close();
		os.close();
	}
}
